package com.yanqu.road.server.cmd.activity.guagifts;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.GuaGiftsProto;
import com.yanqu.road.pb.activity.QixiProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.QixiCrossMgr.CrossQixiMgr;
import com.yanqu.road.server.manager.activity.guagifts.CrossGuaGiftsMgr;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C_GUAGIFTS_SEND_GIFT_BROADCAST, desc = "孤寡献礼 赠送鲜花广播")
public class CrossGuaSendGiftBroadcastCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        GuaGiftsProto.CrossGuaGiftsGiftBroadcastMsg resultMsg = GuaGiftsProto.CrossGuaGiftsGiftBroadcastMsg.parseFrom(packet.getBytes());
        CrossGuaGiftsMgr.receiveBroadcastMsg(resultMsg);
    }

    @Override
    public void sendData() {

    }
}
